<a href="javascript:void(0)" onclick="copyProduct(this)" class="btn btn-outline-secondary btn-sm">复制</a>
@push('footer')
  <script type="text/javascript">
    function copyProduct(obj) {
      let copy_id = $(obj).parent().parent().find("td input:first").val();
      console.log(copy_id);
      window.location.href = "{{$copy_url}}?copy_id=" + copy_id;
    }
  </script>
@endpush
